 

#include "j:/ksl/ksl/experiment/ini_file/test.h"
#include "j:/ksl/ksl/experiment/ini_file/detail.h"





int main(int argc, char* argv[])
{
	using namespace ksini::detail;


#if 0

	std::string line;

	line = "";
	trim_left(line);

	line = "f";
	trim_left(line);

	line = " ";
	trim_left(line);

	line = " t";
	trim_left(line);

	line = "t ";
	trim_left(line);

	line = " t ";
	trim_left(line);


	line = " aghjhgjghjgha ";
	trim_left(line);

	line = "abcd ";
	trim_left(line);




	//-------------------------------------

	line = "abcde";
	trim_string(line);

	line = "   abcd       ";
	trim_string(line);

	line = "";
	trim_string(line);

	line = " ";
	trim_string(line);

	line = " f";
	trim_string(line);

	line = "f ";
	trim_string(line);

	line = " f ";
	trim_string(line);

	line = "gfg ";
	trim_string(line);


	line = " gfg";
	trim_string(line);

	line = " gfg ";
	trim_string(line);

	line = "   abcd       ";
	trim_string(line);


	line = "";


	//-----------------------------------------------------------

	std::string  comment;

	bool res;
	res = is_comment(comment, "fffdsfddfdfdsfsfsdfsdf");
	res = is_comment(comment, "");
	res = is_comment(comment, " ");
	res = is_comment(comment, ";");
	res = is_comment(comment, " ;");
	res = is_comment(comment, "; ");
	res = is_comment(comment, ";");
	res = is_comment(comment, ";mycomment");
	res = is_comment(comment, ";  mycomment");
	res = is_comment(comment, ";my comment line");



	/*
	std::string src = "abcd";
	trim_string(src);

	src = "a";
	trim_string(src);

	src = "ab";
	trim_string(src);

	src = "avx";
	trim_string(src);

	src = "aasd";
	trim_string(src);

	src = "  af";
	trim_string(src);

	src = "ab ";
	trim_string(src);
	*/

	std::string sname;

	res = ksini::detail::is_section_name(sname, "[asd]");
	res = ksini::detail::is_section_name(sname, "[a]");
	res = ksini::detail::is_section_name(sname, "[az]");


#endif 
	//-------------------------
	ksini::test::do_test_2();


	return 0;
}

